package com.zsrt.examination.entity;
/**
*@author jzh
*@创建时间 2017年4月20日下午7:08:20
*类说明：
*/
public class StudentEntity implements Comparable<StudentEntity> {
	
	private String role;
	private String id;
	private String name;
	private Integer age;
	private String password;
	private String province;
	private String city;
	private String phone;
	private Integer chineseScore; 
	private Integer mathScore;
	private Integer englishScore;
	
	
	public StudentEntity(String role, String id, String name, Integer age, String password, String province,
			String city, String phone, Integer chineseScore, Integer mathScore, Integer englishScore) {
		this.role = role;
		this.id = id;
		this.name = name;
		this.age = age;
		this.password = password;
		this.province = province;
		this.city = city;
		this.phone = phone;
		this.chineseScore = chineseScore;
		this.mathScore = mathScore;
		this.englishScore = englishScore;
	}
	
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Integer getChineseScore() {
		return chineseScore;
	}
	public void setChineseScore(Integer chineseScore) {
		this.chineseScore = chineseScore;
	}
	public Integer getMathScore() {
		return mathScore;
	}
	public void setMathScore(Integer mathScore) {
		this.mathScore = mathScore;
	}
	public Integer getEnglishScore() {
		return englishScore;
	}
	public void setEnglishScore(Integer englishScore) {
		this.englishScore = englishScore;
	}

	@Override
	public String toString() {
		return "StudentEntity [role=" + role + ", id=" + id + ", name=" + name + ", age=" + age + ", password="
				+ password + ", province=" + province + ", city=" + city + ", phone=" + phone + ", chineseScore="
				+ chineseScore + ", mathScore=" + mathScore + ", englishScore=" + englishScore + "]";
	}

	@Override
	public int compareTo(StudentEntity o) {
		int result=o.getChineseScore()-this.getChineseScore();
		return result;
	}
	
	

}
